

import bpy
import nodeitems_utils
from bpy.types import Operator, Menu





class C_节点子菜单_物体修改器(Menu):
	bl_idname = 'node.menu_object_mod'
	bl_label = "物体修改器"

	def draw(self, context):
		layout = self.layout
		#layout.operator('node.create_node_texture')



class C_节点子菜单_网格(Menu):
	bl_idname = "node.menu_meshs"
	bl_label = "网格"
	
	def draw(self, context):
		layout = self.layout
		#取数据
		layout.operator('node.global_node_get_mesh', text='取网格', icon='MESH_DATA')
		layout.operator('node.global_node_load_mesh', icon='MOD_DATA_TRANSFER')
		layout.operator('node.from_mesh_voxels', icon='FILE_VOLUME')
		#layout.operator('node.global_node_get_mesh', icon='MESH_DATA')
		#layout.operator('node.global_node_create_mesh', icon='MESH_DATA')
		#layout.menu("node.image_texture", icon='ALIGN_FLUSH')
		
		#编辑数据
		layout.separator()
		layout.operator('node.global_node_meshes_tranform')
		layout.operator('node.global_node_obj_modifiers_mesh_split', text='网格分割', icon='MOD_DISPLACE')
		layout.operator('node.from_mesh_create_mesh', icon='IMGDISPLAY')
		

		#置数据
		layout.separator()
		#layout.operator('node.global_node_load_particle', icon='MOD_PARTICLES')
		layout.operator('node.global_node_save_mesh', icon='DISK_DRIVE')
		layout.operator('node.global_node_obj_meshs_export_buffer', icon='DISK_DRIVE')
		layout.operator('node.global_node_obj_meshs_impurt_buffer', icon='DISK_DRIVE')
		





classes = (

	C_节点子菜单_网格,
	
)

def register():
	for c in classes:
		bpy.utils.register_class(c)

def unregister():
	for c in classes:
		bpy.utils.unregister_class(c)

	



